home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 14642 / 14642.xpi / chrome / content / settings.xul < prev   
Extensible Markup Language  |  2009-10-15  |  11KB  |  251 lines

  1. <?xml version="1.0"?>
  2. <!-- Copyright 2009, Boomtango.com, All Rights Reserved -->
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://browser/skin/browser.css" type="text/css" ?>
  5. <?xml-stylesheet href="chrome://boomtango/skin/bt.css" type="text/css" ?>
  6. <!DOCTYPE page SYSTEM "chrome://boomtango/locale/bt.dtd">
  7.  
  8. <prefwindow
  9.     type="prefwindow"
  10.             windowtype="Browser:Preferences"
  11.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
  12.     xmlns:html="http://www.w3.org/1999/xhtml"
  13.     id="boomtangoSettings" 
  14.     title="&settings.title;"
  15.     dlgbuttons="accept"
  16.     ondialogaccept="return mgr.onOK()"
  17.     onload="mgr.onLoad();" 
  18.     >
  19.     
  20.     <script src="chrome://boomtango/content/settings.js" />
  21.  
  22.     <prefpane id="general" class="paneContent" label="&settings.general.title;">    
  23.     
  24.     <preferences id="contentPreferences">
  25.       <preference id="extensions.boomtango.confirmdelete"   name="extensions.boomtango.confirmdelete"   type="bool"/>
  26.       <preference id="extensions.boomtango.useserp"   name="extensions.boomtango.useserp"   type="bool"/>
  27.     </preferences>
  28.  
  29.         <grid>
  30.             <columns><column/><column/></columns>
  31.             <rows>
  32.                 <row>
  33.                     <label value="&settings.general.defaultview;" class="menuLabel"/>
  34.                     <menulist id="defaultView" 
  35.                         onselect="mgr.panes['general'].onDefaultView();"> 
  36.                         <menupopup>
  37.                         </menupopup>
  38.                     </menulist>
  39.                 </row>
  40.                 <row>
  41.                     <label value="&settings.general.defaultdur;" class="menuLabel"/>
  42.                     <menulist id="defaultDur" 
  43.                         onselect="mgr.panes['general'].onDefaultDur();"> 
  44.                         <menupopup>
  45.                         </menupopup>
  46.                     </menulist>
  47.                 </row>
  48.                 <row>
  49.                     <label value="&settings.general.searchresultsperpage;" class="menuLabel"/>
  50.                     <menulist id="numPerPage" 
  51.                         onselect="mgr.panes['general'].onPerPageChange();"> 
  52.                         <menupopup>
  53.                         </menupopup>
  54.                     </menulist>
  55.                 </row>
  56.                 <row>
  57.                     <label value="&settings.general.tabdelay;" class="menuLabel"/>
  58.                     <menulist id="tabDelay" 
  59.                         onselect="mgr.panes['general'].onTabDelayChange();"> 
  60.                         <menupopup>
  61.                         </menupopup>
  62.                     </menulist>
  63.                 </row>
  64.                 <row>
  65.                     <label value="&settings.general.itemspercat;" class="menuLabel"/>
  66.                     <menulist id="itemsPerCat" 
  67.                         onselect="mgr.panes['general'].onItemsPerCatChange();"> 
  68.                         <menupopup>
  69.                         </menupopup>
  70.                     </menulist>
  71.                 </row>
  72.                 <row>       
  73.                     <vbox align="start">
  74.                         <checkbox id="" preference="extensions.boomtango.confirmdelete"
  75.                             label="&settings.general.askbeforehistorydelete;" />
  76.                     </vbox>
  77.                 </row>
  78.                 <row>       
  79.                     <vbox align="start">
  80.                         <checkbox id="" preference="extensions.boomtango.useserp"
  81.                             label="&settings.general.useserp;" />
  82.                     </vbox>
  83.                 </row>
  84.                 <row>       
  85.                     <vbox align="start">
  86.                         <checkbox id="usethumb" onclick="mgr.panes['general'].onThumbClick();"
  87.                             label="&settings.general.usethumb;" />
  88.                     </vbox>
  89.                 </row>
  90.                 <row>       
  91.                     <checkbox id="uselog" onclick="mgr.panes['general'].onLogClick();"
  92.                         label="&settings.general.uselog;" />
  93.                     <button label="&settings.general.showlog;"
  94.                         onclick="mgr.panes['general'].onShowLog();" />
  95.                 </row>
  96.             </rows>
  97.         </grid>
  98.         <groupbox style="margin-top: 50px;">
  99.             <caption label="&settings.general.info.title;" />
  100.             <label id="btversion" />
  101.             <label id="dbversion" />
  102.         </groupbox>
  103.     </prefpane>
  104.  
  105.     <prefpane id="storage" label="&settings.storage.title;">
  106.         <groupbox>
  107.             <caption label="&settings.storage.manage.title;" />
  108.             <grid>
  109.                 <columns><column/><column/></columns>
  110.                 <rows>
  111.                     <row id="deleteHistoryRow">
  112.                         <label id="deleteHistoryLabel" value="&settings.storage.delete.title;" class="menuLabel"/>
  113.                         <button id="deleteHistoryButton" label="&settings.storage.delete;"
  114.                             accesskey=""/>
  115.                     </row>
  116.                     <row id="deleteThumbnailRow">
  117.                         <label id="deleteThumbnailLabel" value="&settings.storage.clearthumb.title;" class="menuLabel"/>
  118.                         <button id="deleteThumbnailButton" label="&settings.storage.clear;"
  119.                             oncommand="mgr.panes['storage'].onDeleteThumbs()"
  120.                             accesskey=""/>
  121.                     </row>
  122.                 </rows>
  123.             </grid>
  124.         </groupbox>
  125.         <groupbox>
  126.             <caption label="&settings.storage.backup.title;" />
  127.             <hbox>
  128.                 <textbox id="backup_textbox" flex="1"
  129.                     oninput="mgr.panes['storage'].onBackupInput(event.target);"/>
  130.                 <button id="tracker_import" label="&settings.storage.backup.saveas;" 
  131.                     onclick="mgr.panes['storage'].onChooseBackup();"/>
  132.             </hbox>
  133.             <hbox>
  134.                 <button id="backup_button" label="&settings.storage.backup.title;"
  135.                     disabled="true"
  136.                     onclick="mgr.panes['storage'].onBackup();"/>
  137.             </hbox>
  138.         </groupbox>
  139.         <groupbox>
  140.             <caption label="&settings.storage.restore.title;" />
  141.             <description value="&settings.storage.restore.description;" />
  142.             <hbox>
  143.                 <textbox id="restore_textbox" flex="1"
  144.                     oninput="mgr.panes['storage'].onRestoreInput(event.target);"/>
  145.                 <button label="&settings.storage.restore.choose;" 
  146.                     onclick="mgr.panes['storage'].onChooseRestore();"/>
  147.             </hbox>
  148.             <hbox>
  149.                 <button id="restore_button" label="&settings.storage.restore.title;"
  150.                     disabled="true"
  151.                     onclick="mgr.panes['storage'].onRestore();"/>
  152.             </hbox>
  153.         </groupbox>
  154.     </prefpane>
  155.     
  156.     <prefpane id="blacklist" label="&settings.blacklist.title;">
  157.         <vbox flex="1">
  158.             <description control="address" value="&settings.blacklist.description;" />
  159.             <separator class="thin"/>
  160.             <label id="urlLabel" control="url" value="&settings.blacklist.url;"/>
  161.             
  162.             <hbox align="start">
  163.                 <textbox id="address" flex="1" 
  164.                     oninput="mgr.panes['blacklist'].onAddressInput(event.target);"
  165.                     onkeypress="mgr.panes['blacklist'].onAddressKeyPress(event);"/>
  166.             </hbox>
  167.             <hbox pack="end">
  168.                 <button id="address_block" disabled="true" label="&settings.blacklist.block;"
  169.                     oncommand="mgr.panes['blacklist'].onAddressBlock()"/>
  170.             </hbox>
  171.             <separator class="thin"/>
  172.             <listbox id="blacklist_list" seltype="single" onselect="mgr.panes['blacklist'].onListSelect();"/>
  173.             <hbox align="end">
  174.                 <hbox class="actionButtons" flex="1">
  175.                     
  176.                     <button id="address_remove" disabled="true"
  177.                         icon="remove" label="&settings.blacklist.remove;"
  178.                         oncommand="mgr.panes['blacklist'].onAddressRemove()"/>
  179.                     <button id="address_remove_all" disabled="true"
  180.                         icon="clear" label="&settings.blacklist.removeall;"
  181.                         oncommand="mgr.panes['blacklist'].onAddressRemoveAll()"/>
  182.                     <spacer flex="1"/>
  183.                     </hbox>
  184.                 <resizer dir="bottomend"/>
  185.                 </hbox>
  186.             
  187.         </vbox>
  188.     </prefpane>
  189.     
  190.     <prefpane id="tracking" label="&settings.tracking.title;">
  191.         
  192.         <label value="" />
  193.         <listbox id="tracker" seltype="single" onselect="mgr.panes['tracking'].onListSelect();"/>
  194.         <groupbox>
  195.             <caption id="tracker_current" />
  196.             <description id="tracker_desc" >
  197.             </description>
  198.             <checkbox id="tracker_enable" label="&settings.tracking.enable;" 
  199.                     onclick="mgr.panes['tracking'].onEnable();"/>
  200.             <hbox>
  201.                 <label value="&settings.tracking.color;" />
  202.                 <colorpicker id="tracker_color"
  203.                     onchange="mgr.panes['tracking'].onColor();" type="button" />
  204.                 <button id="tracker_resetcolor" label="&settings.tracking.reset;" 
  205.                     onclick="mgr.panes['tracking'].onResetColor();"/>
  206.                 <spacer flex="1" />
  207.             </hbox>
  208.             <hbox>
  209.                 <label id="plugin_url" value="&settings.tracking.plugincheck;" class="text-link" />
  210.                 <spacer flex="1"/>
  211.                 <hbox id="tracker_version" hidden="true">
  212.                     <label value="&settings.tracking.pluginversion;" />
  213.                     <label id="plugin_version" />
  214.                 </hbox>
  215.             </hbox>
  216.             <hbox>
  217.                 <button id="tracker_advanced" label="&settings.tracking.advanced;" 
  218.                     hidden="true"
  219.                     onclick="mgr.panes['tracking'].onAdvanced();"/>
  220.                 <spacer flex="1" />
  221.                 <button id="tracker_delete" label="&settings.tracking.delete;" 
  222.                     onclick="mgr.panes['tracking'].onDelete();"/>
  223.             </hbox>
  224.         </groupbox>
  225.         <groupbox>
  226.             <caption label="&settings.tracking.thirdparty;" />
  227.             <hbox>
  228.                 <button id="tracker_import" label="&settings.tracking.import;" 
  229.                     onclick="mgr.panes['tracking'].onImport();"/>
  230.                 <spacer flex="1" />
  231.             </hbox>
  232.             <hbox>
  233.                 <label value="&settings.tracking.link;"
  234.                     class="text-link"
  235.                     href="http://www.boomtango.com/plugins.shtml"
  236.                     />
  237.                 <spacer flex="1" />
  238.             </hbox>
  239.         </groupbox>
  240.         <groupbox>
  241.             <caption label="&category.create;" />
  242.             <hbox>
  243.                 <button id="tracker_create" label="&settings.tracking.create;" 
  244.                     onclick="mgr.panes['tracking'].onCreate();"/>
  245.                 <spacer flex="1" />
  246.             </hbox>
  247.         </groupbox>
  248.     </prefpane>
  249.     
  250. </prefwindow>
  251.